times(x, y) → help(x, y, 0)
help(x, y, c) → if(lt(c, y), x, y, c)
if(true, x, y, c) → plus(x, help(x, y, s(c)))
if(false, x, y, c) → 0
lt(0, s(x)) → true
lt(s(x), 0) → false
lt(s(x), s(y)) → lt(x, y)
plus(x, 0) → x
plus(0, x) → x
plus(x, s(y)) → s(plus(x, y))
plus(s(x), y) → s(plus(x, y))
↳ QTRS
↳ Overlay + Local Confluence
times(x, y) → help(x, y, 0)
help(x, y, c) → if(lt(c, y), x, y, c)
if(true, x, y, c) → plus(x, help(x, y, s(c)))
if(false, x, y, c) → 0
lt(0, s(x)) → true
lt(s(x), 0) → false
lt(s(x), s(y)) → lt(x, y)
plus(x, 0) → x
plus(0, x) → x
plus(x, s(y)) → s(plus(x, y))
plus(s(x), y) → s(plus(x, y))
↳ QTRS
↳ Overlay + Local Confluence
↳ QTRS
↳ DependencyPairsProof
times(x, y) → help(x, y, 0)
help(x, y, c) → if(lt(c, y), x, y, c)
if(true, x, y, c) → plus(x, help(x, y, s(c)))
if(false, x, y, c) → 0
lt(0, s(x)) → true
lt(s(x), 0) → false
lt(s(x), s(y)) → lt(x, y)
plus(x, 0) → x
plus(0, x) → x
plus(x, s(y)) → s(plus(x, y))
plus(s(x), y) → s(plus(x, y))
times(x0, x1)
help(x0, x1, x2)
if(true, x0, x1, x2)
if(false, x0, x1, x2)
lt(0, s(x0))
lt(s(x0), 0)
lt(s(x0), s(x1))
plus(x0, 0)
plus(0, x0)
plus(x0, s(x1))
plus(s(x0), x1)
LT(s(x), s(y)) → LT(x, y)
TIMES(x, y) → HELP(x, y, 0)
HELP(x, y, c) → LT(c, y)
HELP(x, y, c) → IF(lt(c, y), x, y, c)
IF(true, x, y, c) → HELP(x, y, s(c))
PLUS(x, s(y)) → PLUS(x, y)
IF(true, x, y, c) → PLUS(x, help(x, y, s(c)))
PLUS(s(x), y) → PLUS(x, y)
times(x, y) → help(x, y, 0)
help(x, y, c) → if(lt(c, y), x, y, c)
if(true, x, y, c) → plus(x, help(x, y, s(c)))
if(false, x, y, c) → 0
lt(0, s(x)) → true
lt(s(x), 0) → false
lt(s(x), s(y)) → lt(x, y)
plus(x, 0) → x
plus(0, x) → x
plus(x, s(y)) → s(plus(x, y))
plus(s(x), y) → s(plus(x, y))
times(x0, x1)
help(x0, x1, x2)
if(true, x0, x1, x2)
if(false, x0, x1, x2)
lt(0, s(x0))
lt(s(x0), 0)
lt(s(x0), s(x1))
plus(x0, 0)
plus(0, x0)
plus(x0, s(x1))
plus(s(x0), x1)
↳ QTRS
↳ Overlay + Local Confluence
↳ QTRS
↳ DependencyPairsProof
↳ QDP
↳ DependencyGraphProof
LT(s(x), s(y)) → LT(x, y)
TIMES(x, y) → HELP(x, y, 0)
HELP(x, y, c) → LT(c, y)
HELP(x, y, c) → IF(lt(c, y), x, y, c)
IF(true, x, y, c) → HELP(x, y, s(c))
PLUS(x, s(y)) → PLUS(x, y)
IF(true, x, y, c) → PLUS(x, help(x, y, s(c)))
PLUS(s(x), y) → PLUS(x, y)
times(x, y) → help(x, y, 0)
help(x, y, c) → if(lt(c, y), x, y, c)
if(true, x, y, c) → plus(x, help(x, y, s(c)))
if(false, x, y, c) → 0
lt(0, s(x)) → true
lt(s(x), 0) → false
lt(s(x), s(y)) → lt(x, y)
plus(x, 0) → x
plus(0, x) → x
plus(x, s(y)) → s(plus(x, y))
plus(s(x), y) → s(plus(x, y))
times(x0, x1)
help(x0, x1, x2)
if(true, x0, x1, x2)
if(false, x0, x1, x2)
lt(0, s(x0))
lt(s(x0), 0)
lt(s(x0), s(x1))
plus(x0, 0)
plus(0, x0)
plus(x0, s(x1))
plus(s(x0), x1)
↳ QTRS
↳ Overlay + Local Confluence
↳ QTRS
↳ DependencyPairsProof
↳ QDP
↳ DependencyGraphProof
↳ AND
↳ QDP
↳ UsableRulesProof
↳ QDP
↳ QDP
PLUS(x, s(y)) → PLUS(x, y)
PLUS(s(x), y) → PLUS(x, y)
times(x, y) → help(x, y, 0)
help(x, y, c) → if(lt(c, y), x, y, c)
if(true, x, y, c) → plus(x, help(x, y, s(c)))
if(false, x, y, c) → 0
lt(0, s(x)) → true
lt(s(x), 0) → false
lt(s(x), s(y)) → lt(x, y)
plus(x, 0) → x
plus(0, x) → x
plus(x, s(y)) → s(plus(x, y))
plus(s(x), y) → s(plus(x, y))
times(x0, x1)
help(x0, x1, x2)
if(true, x0, x1, x2)
if(false, x0, x1, x2)
lt(0, s(x0))
lt(s(x0), 0)
lt(s(x0), s(x1))
plus(x0, 0)
plus(0, x0)
plus(x0, s(x1))
plus(s(x0), x1)
↳ QTRS
↳ Overlay + Local Confluence
↳ QTRS
↳ DependencyPairsProof
↳ QDP
↳ DependencyGraphProof
↳ AND
↳ QDP
↳ UsableRulesProof
↳ QDP
↳ QReductionProof
↳ QDP
↳ QDP
PLUS(x, s(y)) → PLUS(x, y)
PLUS(s(x), y) → PLUS(x, y)
times(x0, x1)
help(x0, x1, x2)
if(true, x0, x1, x2)
if(false, x0, x1, x2)
lt(0, s(x0))
lt(s(x0), 0)
lt(s(x0), s(x1))
plus(x0, 0)
plus(0, x0)
plus(x0, s(x1))
plus(s(x0), x1)
times(x0, x1)
help(x0, x1, x2)
if(true, x0, x1, x2)
if(false, x0, x1, x2)
lt(0, s(x0))
lt(s(x0), 0)
lt(s(x0), s(x1))
plus(x0, 0)
plus(0, x0)
plus(x0, s(x1))
plus(s(x0), x1)
↳ QTRS
↳ Overlay + Local Confluence
↳ QTRS
↳ DependencyPairsProof
↳ QDP
↳ DependencyGraphProof
↳ AND
↳ QDP
↳ UsableRulesProof
↳ QDP
↳ QReductionProof
↳ QDP
↳ QDPSizeChangeProof
↳ QDP
↳ QDP
PLUS(x, s(y)) → PLUS(x, y)
PLUS(s(x), y) → PLUS(x, y)
From the DPs we obtained the following set of size-change graphs:
↳ QTRS
↳ Overlay + Local Confluence
↳ QTRS
↳ DependencyPairsProof
↳ QDP
↳ DependencyGraphProof
↳ AND
↳ QDP
↳ QDP
↳ UsableRulesProof
↳ QDP
LT(s(x), s(y)) → LT(x, y)
times(x, y) → help(x, y, 0)
help(x, y, c) → if(lt(c, y), x, y, c)
if(true, x, y, c) → plus(x, help(x, y, s(c)))
if(false, x, y, c) → 0
lt(0, s(x)) → true
lt(s(x), 0) → false
lt(s(x), s(y)) → lt(x, y)
plus(x, 0) → x
plus(0, x) → x
plus(x, s(y)) → s(plus(x, y))
plus(s(x), y) → s(plus(x, y))
times(x0, x1)
help(x0, x1, x2)
if(true, x0, x1, x2)
if(false, x0, x1, x2)
lt(0, s(x0))
lt(s(x0), 0)
lt(s(x0), s(x1))
plus(x0, 0)
plus(0, x0)
plus(x0, s(x1))
plus(s(x0), x1)
↳ QTRS
↳ Overlay + Local Confluence
↳ QTRS
↳ DependencyPairsProof
↳ QDP
↳ DependencyGraphProof
↳ AND
↳ QDP
↳ QDP
↳ UsableRulesProof
↳ QDP
↳ QReductionProof
↳ QDP
LT(s(x), s(y)) → LT(x, y)
times(x0, x1)
help(x0, x1, x2)
if(true, x0, x1, x2)
if(false, x0, x1, x2)
lt(0, s(x0))
lt(s(x0), 0)
lt(s(x0), s(x1))
plus(x0, 0)
plus(0, x0)
plus(x0, s(x1))
plus(s(x0), x1)
times(x0, x1)
help(x0, x1, x2)
if(true, x0, x1, x2)
if(false, x0, x1, x2)
lt(0, s(x0))
lt(s(x0), 0)
lt(s(x0), s(x1))
plus(x0, 0)
plus(0, x0)
plus(x0, s(x1))
plus(s(x0), x1)
↳ QTRS
↳ Overlay + Local Confluence
↳ QTRS
↳ DependencyPairsProof
↳ QDP
↳ DependencyGraphProof
↳ AND
↳ QDP
↳ QDP
↳ UsableRulesProof
↳ QDP
↳ QReductionProof
↳ QDP
↳ QDPSizeChangeProof
↳ QDP
LT(s(x), s(y)) → LT(x, y)
From the DPs we obtained the following set of size-change graphs:
↳ QTRS
↳ Overlay + Local Confluence
↳ QTRS
↳ DependencyPairsProof
↳ QDP
↳ DependencyGraphProof
↳ AND
↳ QDP
↳ QDP
↳ QDP
↳ UsableRulesProof
HELP(x, y, c) → IF(lt(c, y), x, y, c)
IF(true, x, y, c) → HELP(x, y, s(c))
times(x, y) → help(x, y, 0)
help(x, y, c) → if(lt(c, y), x, y, c)
if(true, x, y, c) → plus(x, help(x, y, s(c)))
if(false, x, y, c) → 0
lt(0, s(x)) → true
lt(s(x), 0) → false
lt(s(x), s(y)) → lt(x, y)
plus(x, 0) → x
plus(0, x) → x
plus(x, s(y)) → s(plus(x, y))
plus(s(x), y) → s(plus(x, y))
times(x0, x1)
help(x0, x1, x2)
if(true, x0, x1, x2)
if(false, x0, x1, x2)
lt(0, s(x0))
lt(s(x0), 0)
lt(s(x0), s(x1))
plus(x0, 0)
plus(0, x0)
plus(x0, s(x1))
plus(s(x0), x1)
↳ QTRS
↳ Overlay + Local Confluence
↳ QTRS
↳ DependencyPairsProof
↳ QDP
↳ DependencyGraphProof
↳ AND
↳ QDP
↳ QDP
↳ QDP
↳ UsableRulesProof
↳ QDP
↳ QReductionProof
HELP(x, y, c) → IF(lt(c, y), x, y, c)
IF(true, x, y, c) → HELP(x, y, s(c))
lt(0, s(x)) → true
lt(s(x), 0) → false
lt(s(x), s(y)) → lt(x, y)
times(x0, x1)
help(x0, x1, x2)
if(true, x0, x1, x2)
if(false, x0, x1, x2)
lt(0, s(x0))
lt(s(x0), 0)
lt(s(x0), s(x1))
plus(x0, 0)
plus(0, x0)
plus(x0, s(x1))
plus(s(x0), x1)
times(x0, x1)
help(x0, x1, x2)
if(true, x0, x1, x2)
if(false, x0, x1, x2)
plus(x0, 0)
plus(0, x0)
plus(x0, s(x1))
plus(s(x0), x1)
↳ QTRS
↳ Overlay + Local Confluence
↳ QTRS
↳ DependencyPairsProof
↳ QDP
↳ DependencyGraphProof
↳ AND
↳ QDP
↳ QDP
↳ QDP
↳ UsableRulesProof
↳ QDP
↳ QReductionProof
↳ QDP
↳ NonInfProof
HELP(x, y, c) → IF(lt(c, y), x, y, c)
IF(true, x, y, c) → HELP(x, y, s(c))
lt(0, s(x)) → true
lt(s(x), 0) → false
lt(s(x), s(y)) → lt(x, y)
lt(0, s(x0))
lt(s(x0), 0)
lt(s(x0), s(x1))
(1) (HELP(x3, x4, s(x5))=HELP(x6, x7, x8) ⇒ HELP(x6, x7, x8)≥IF(lt(x8, x7), x6, x7, x8))
(2) (HELP(x3, x4, s(x5))≥IF(lt(s(x5), x4), x3, x4, s(x5)))
(3) (IF(lt(x11, x10), x9, x10, x11)=IF(true, x12, x13, x14) ⇒ IF(true, x12, x13, x14)≥HELP(x12, x13, s(x14)))
(4) (lt(x11, x10)=true ⇒ IF(true, x9, x10, x11)≥HELP(x9, x10, s(x11)))
(5) (true=true ⇒ IF(true, x9, s(x18), 0)≥HELP(x9, s(x18), s(0)))
(6) (lt(x20, x21)=true∧(∀x22:lt(x20, x21)=true ⇒ IF(true, x22, x21, x20)≥HELP(x22, x21, s(x20))) ⇒ IF(true, x9, s(x21), s(x20))≥HELP(x9, s(x21), s(s(x20))))
(7) (IF(true, x9, s(x18), 0)≥HELP(x9, s(x18), s(0)))
(8) (IF(true, x9, x21, x20)≥HELP(x9, x21, s(x20)) ⇒ IF(true, x9, s(x21), s(x20))≥HELP(x9, s(x21), s(s(x20))))
POL(0) = 0
POL(HELP(x1, x2, x3)) = -1 + x1 + x2 - x3
POL(IF(x1, x2, x3, x4)) = -1 - x1 + x2 + x3 - x4
POL(c) = -2
POL(false) = 0
POL(lt(x1, x2)) = 0
POL(s(x1)) = 1 + x1
POL(true) = 0
The following pairs are in Pbound:
IF(true, x, y, c) → HELP(x, y, s(c))
The following rules are usable:
IF(true, x, y, c) → HELP(x, y, s(c))
false → lt(s(x), 0)
lt(x, y) → lt(s(x), s(y))
true → lt(0, s(x))
↳ QTRS
↳ Overlay + Local Confluence
↳ QTRS
↳ DependencyPairsProof
↳ QDP
↳ DependencyGraphProof
↳ AND
↳ QDP
↳ QDP
↳ QDP
↳ UsableRulesProof
↳ QDP
↳ QReductionProof
↳ QDP
↳ NonInfProof
↳ QDP
↳ DependencyGraphProof
HELP(x, y, c) → IF(lt(c, y), x, y, c)
lt(0, s(x)) → true
lt(s(x), 0) → false
lt(s(x), s(y)) → lt(x, y)
lt(0, s(x0))
lt(s(x0), 0)
lt(s(x0), s(x1))